home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
TP_TOOLS
/
CLOCK.DOC
next >
Wrap
Text File
|
1994-05-10
|
3KB
|
147 lines
PROGRAMMING MANUAL
------------------
The following list of routines were written to provide clock support for
programs written in Turbo Pascal (version 5.0). The routines include:
CLOCK_TIME_BUILD
CLOCK_DATE_BUILD
CLOCK_TIME
CLOCK_DATE
The following is a programming example for proper use of the clock routines:
PROGRAM CLOCK_EXAMPLE
USES DOS, CRT, GRAPH, CLOCK;
BEGIN
CLOCK_TIME_BUILD(10,10,7,15,8,0);
CLOCK_DATE_BUILD(10,30,7,15,8,0);
CLOCK_DATE(2);
CLOCK_TIME(2);
END;
NOTES: 1) The clock unit must be included in the USES line (along with any
other required units).
PROGRAMMING MANUAL
------------------
CLOCK_TIME_BUILD
USE CLOCK_TIME_BUILD(XLoc, YLoc, Edge, Hi, Lo, Back :INTEGER);
FUNCTION Builds a 3D style window for TIME display use.
ARGUMENTS XLoc :INTEGER
Specifies the window horizontal start location.
Legal Values: 1 to (max screen size - 100).
YLoc :INTEGER
Specifies the window vertical start location.
Legal Values: 1 to (max screen size - 20).
Edge :INTEGER
Specifies the color of the window border.
Legal Values: 0 to 15.
Hi :INTEGER
Specifies the color of the high-lighted window side.
Legal Values: 0 to 15.
Lo :INTEGER
Specifies the color of the shaded window side.
Legal Values: 0 to 15.
Back :INTEGER
Specifies the time-text background color.
Legal Values: 0 to 15.
COMMENTS The window location and text background value are
automatically passed to the CLOCK_TIME procedure.
PROGRAMMING MANUAL
------------------
CLOCK_DATE_BUILD
USE CLOCK_DATE_BUILD(XLoc, YLoc, Edge, Hi, Lo, Back :INTEGER);
FUNCTION Builds a 3D style window for DATE display use.
ARGUMENTS XLoc :INTEGER
Specifies the window horizontal start location.
Legal Values: 1 to (max screen size - 100).
YLoc :INTEGER
Specifies the window vertical start location.
Legal Values: 1 to (max screen size - 20).
Edge :INTEGER
Specifies the color of the window border.
Legal Values: 0 to 15.
Hi :INTEGER
Specifies the color of the high-lighted window side.
Legal Values: 0 to 15.
Lo :INTEGER
Specifies the color of the shaded window side.
Legal Values: 0 to 15.
Back :INTEGER
Specifies the date-text background color.
Legal Values: 0 to 15.
COMMENTS The window location and text background value are
automatically passed to the CLOCK_DATE procedure.
PROGRAMMING MANUAL
------------------
CLOCK_TIME
USE CLOCK_TIME(Color);
FUNCTION Displays the current TIME.
ARGUMENTS Color :INTEGER
Specifies the TIME-text display color.
Legal Values: 0 to 15.
COMMENTS None.
PROGRAMMING MANUAL
------------------
CLOCK_DATE
USE CLOCK_DATE(Color);
FUNCTION Displays the current DATE.
ARGUMENTS Color :INTEGER
Specifies the DATE-text display color.
Legal Values: 0 to 15.
COMMENTS None.